//
//  MDGather.h
//  evidenceGather
//
//  Created by 王继伟 on 13-8-21.
//  Copyright (c) 2013年 无. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MDBase.h"
#import "GatherFileVO.h"
#import "GatherResult.h"

@interface MDGather : MDBase

//数据库插入记录对象
-(NSString *)insertGatherRecord:(GatherResult *) gatherRecord;

//数据库插入记录附件对象
-(NSString *)insertGatherFile:(GatherFileVO *) gatherFile;

//根据分类查询附件信息
-(NSMutableDictionary *)qryGatherResultByClsPk:(NSString *) pkProbCls;

//根据记录逐渐查询记录信息
-(GatherResult *)qryGatherResultByPk:(NSString *) pkGatherRecord;

//数据库插入bug附件对象
-(GatherFileVO *)qryGatherFileByPk:(NSString *) pkGatherFile;

//根据省份、项目、问题文类，用户查询已存在未提交的采样信息
-(GatherResult *) qryUnCommitGatherInfo:(NSString *)pkProbCls projCode:(NSString *) projCode prvcode:(NSString *)prvcode loginUser:(NSString *) loginUser;
//根据项目和分类，查询当前分类下所有bug
-(NSMutableDictionary *)qryGatherRecourdByPk:(NSString *) projCode pccode:(NSString *)pccode prvcode:(NSString *)prvcode loginUser:(NSString *) loginUser;

//根据项目编码统计分类下的所有采样记录
-(NSMutableDictionary *)qryGatherRecourdCountByPk:(NSString *) pkProjCode;

//根据项目编码统计分类下的所有采样记录
-(NSArray *)qryRecourdFileBypkRecord:(NSString *) gatherRecord;

//更新是否提交标记信息
-(BOOL *)isCommit:(NSString *) gatherReord;

//更新采样备注信息
-(BOOL *)updateResultMemo:(NSString *) memo gatherRecord:(NSString *)gatherRecord;

//更新是否提交标记信息
-(BOOL *)updateResultCommit:(NSArray *) gatherReords;

//更新是否提交标记信息
-(BOOL *)updateResultStatus:(NSString *) prvcode projCode:(NSString *) projCode loginUser:(NSString *) loginUser;

-(void)deleteGatherResultWithProjectCode:(NSArray *)projCodes loginuser:(NSString *)loginuser;

@end
